import 'package:seedfour/generated/json/base/json_field.dart';
import 'package:seedfour/generated/json/case_invoice_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class CaseInvoiceEntity {
	String? cargo;
	String? showTab;
	String? email;
	List<CaseInvoiceRelateCases>? relateCases;
	String? taxid;
	String? remark;
	CaseInvoiceHistoryInvoice? historyInvoice;

	CaseInvoiceEntity();

	factory CaseInvoiceEntity.fromJson(Map<String, dynamic> json) => $CaseInvoiceEntityFromJson(json);

	Map<String, dynamic> toJson() => $CaseInvoiceEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class CaseInvoiceRelateCases {
	String? caseId;
	String? caseName;

	CaseInvoiceRelateCases();

	factory CaseInvoiceRelateCases.fromJson(Map<String, dynamic> json) => $CaseInvoiceRelateCasesFromJson(json);

	Map<String, dynamic> toJson() => $CaseInvoiceRelateCasesToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class CaseInvoiceHistoryInvoice {
	String? cargo;
	String? showTab;
	String? email;
	List<CaseInvoiceHistoryInvoiceRelateCases>? relateCases;

	CaseInvoiceHistoryInvoice();

	factory CaseInvoiceHistoryInvoice.fromJson(Map<String, dynamic> json) => $CaseInvoiceHistoryInvoiceFromJson(json);

	Map<String, dynamic> toJson() => $CaseInvoiceHistoryInvoiceToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class CaseInvoiceHistoryInvoiceRelateCases {
	String? caseId;
	String? caseName;

	CaseInvoiceHistoryInvoiceRelateCases();

	factory CaseInvoiceHistoryInvoiceRelateCases.fromJson(Map<String, dynamic> json) => $CaseInvoiceHistoryInvoiceRelateCasesFromJson(json);

	Map<String, dynamic> toJson() => $CaseInvoiceHistoryInvoiceRelateCasesToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}